package cn.itcast.test;

import cn.itcast.domain.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: cuisensen
 * data: 2018/6/11.
 * time: 10:39.
 */
public class Demo01 {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext cpa=new ClassPathXmlApplicationContext("applicationContext.xml");
        User user= (User) cpa.getBean("user");
        System.out.println(user);
        cpa.close();
    }
}
